package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 入库总览
 * @author pc
 *
 */
public class EntryBean {

	private String entry_detail_id;
	private String entry_date;
	private String catalog_parent_name;
	private String catalog_name;
	private String item_name;
	private String val_names;
	private String unit;
	private String purchase_num;
	private String purchase_price;
	private String purchase_amount;
	
	public EntryBean() {
		
	}
	public EntryBean(Map<String, Object> map) {
		if (!(map.get("entry_detail_id") == null || map.get("entry_detail_id").equals(""))) {
    		this.entry_detail_id = map.get("entry_detail_id").toString();
		}
    	if (!(map.get("entry_date") == null || map.get("entry_date").equals(""))) {
    		this.entry_date = map.get("entry_date").toString();
		}
    	if (!(map.get("catalog_parent_name") == null || map.get("catalog_parent_name").equals(""))) {
    		this.catalog_parent_name = map.get("catalog_parent_name").toString();
		}
    	if (!(map.get("catalog_name") == null || map.get("catalog_name").equals(""))) {
    		this.catalog_name = map.get("catalog_name").toString();
		}
    	if (!(map.get("item_name") == null || map.get("item_name").equals(""))) {
    		this.item_name = map.get("item_name").toString();
		}
    	if (!(map.get("val_names") == null || map.get("val_names").equals(""))) {
    		this.val_names = map.get("val_names").toString();
		}
    	if (!(map.get("unit") == null || map.get("unit").equals(""))) {
    		this.unit = map.get("unit").toString();
		}
    	if (!(map.get("purchase_num") == null || map.get("purchase_num").equals(""))) {
    		this.purchase_num = map.get("purchase_num").toString();
		}
    	if (!(map.get("purchase_price") == null || map.get("purchase_price").equals(""))) {
    		this.purchase_price = map.get("purchase_price").toString();
		}
    	if (!(map.get("purchase_amount") == null || map.get("purchase_amount").equals(""))) {
    		this.purchase_amount = map.get("purchase_amount").toString();
		}
	}
	
	public static List<EntryBean> getBean(List<Map<String, Object>> list) {
		List<EntryBean> entryBeans = null;
		if (list != null && list.size() > 0) {
			entryBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				entryBeans.add(new EntryBean(map));
			}
		}
		return entryBeans;
	}
	
	public String getEntry_detail_id() {
		return entry_detail_id;
	}
	public void setEntry_detail_id(String entry_detail_id) {
		this.entry_detail_id = entry_detail_id;
	}
	public String getEntry_date() {
		return entry_date;
	}
	public void setEntry_date(String entry_date) {
		this.entry_date = entry_date;
	}
	public String getCatalog_parent_name() {
		return catalog_parent_name;
	}
	public void setCatalog_parent_name(String catalog_parent_name) {
		this.catalog_parent_name = catalog_parent_name;
	}
	public String getCatalog_name() {
		return catalog_name;
	}
	public void setCatalog_name(String catalog_name) {
		this.catalog_name = catalog_name;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getVal_names() {
		return val_names;
	}
	public void setVal_names(String val_names) {
		this.val_names = val_names;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getPurchase_num() {
		return purchase_num;
	}
	public void setPurchase_num(String purchase_num) {
		this.purchase_num = purchase_num;
	}
	public String getPurchase_price() {
		return purchase_price;
	}
	public void setPurchase_price(String purchase_price) {
		this.purchase_price = purchase_price;
	}
	public String getPurchase_amount() {
		return purchase_amount;
	}
	public void setPurchase_amount(String purchase_amount) {
		this.purchase_amount = purchase_amount;
	}
	
}
